<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
</head>
<body>
<div id="app">
<router-link to="/foo">foo</router-link>
<router-link to="/foo/zhongguo">zhongguo</router-link>
<router-view></router-view>
</div>
<script type="text/javascript">
    new Vue({
        router:new VueRouter({
            routes:[{path:"/:a",component:{template:"<p>haha{{$route.params.a}}</p><router-view></router-view>"},children:{path:"zhongguo",component:{template:"<p>this is zhongguo!</p>"}}}]
        })
    }).$mount("#app");
</script>
</body>
</html>